package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.CoffeeShopStaffMapper;
import com.ruoyi.system.domain.CoffeeShopStaff;
import com.ruoyi.system.service.ICoffeeShopStaffService;

/**
 * 店铺员工信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-02-11
 */
@Service
public class CoffeeShopStaffServiceImpl implements ICoffeeShopStaffService 
{
    @Autowired
    private CoffeeShopStaffMapper coffeeShopStaffMapper;

    /**
     * 查询店铺员工信息
     * 
     * @param staffId 店铺员工信息主键
     * @return 店铺员工信息
     */
    @Override
    public CoffeeShopStaff selectCoffeeShopStaffByStaffId(Long staffId)
    {
        return coffeeShopStaffMapper.selectCoffeeShopStaffByStaffId(staffId);
    }

    /**
     * 查询店铺员工信息列表
     * 
     * @param coffeeShopStaff 店铺员工信息
     * @return 店铺员工信息
     */
    @Override
    public List<CoffeeShopStaff> selectCoffeeShopStaffList(CoffeeShopStaff coffeeShopStaff)
    {
        return coffeeShopStaffMapper.selectCoffeeShopStaffList(coffeeShopStaff);
    }

    /**
     * 新增店铺员工信息
     * 
     * @param coffeeShopStaff 店铺员工信息
     * @return 结果
     */
    @Override
    public int insertCoffeeShopStaff(CoffeeShopStaff coffeeShopStaff)
    {
        return coffeeShopStaffMapper.insertCoffeeShopStaff(coffeeShopStaff);
    }

    /**
     * 修改店铺员工信息
     * 
     * @param coffeeShopStaff 店铺员工信息
     * @return 结果
     */
    @Override
    public int updateCoffeeShopStaff(CoffeeShopStaff coffeeShopStaff)
    {
        return coffeeShopStaffMapper.updateCoffeeShopStaff(coffeeShopStaff);
    }

    /**
     * 批量删除店铺员工信息
     * 
     * @param staffIds 需要删除的店铺员工信息主键
     * @return 结果
     */
    @Override
    public int deleteCoffeeShopStaffByStaffIds(Long[] staffIds)
    {
        return coffeeShopStaffMapper.deleteCoffeeShopStaffByStaffIds(staffIds);
    }

    /**
     * 删除店铺员工信息信息
     * 
     * @param staffId 店铺员工信息主键
     * @return 结果
     */
    @Override
    public int deleteCoffeeShopStaffByStaffId(Long staffId)
    {
        return coffeeShopStaffMapper.deleteCoffeeShopStaffByStaffId(staffId);
    }
}
